/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.socialNet.manager;

import java.util.ResourceBundle;


/**
 *
 * @author Ann
 */
public class Message {
    private static Message instance;
    private ResourceBundle resource;
    
    private static final String bundlename= "com.bionic.socialNet.manager.Messages";
    public final  static  String SERVLET_EXCEPTION = "SERVLET_EXCEPTION";
    public static final String LOGIN_ERROR = "LOGIN_ERROR";
     
     
    public static Message getInstance (){
        if (instance == null) {
            instance = new Message();
            instance.resource = ResourceBundle.getBundle(bundlename);            
        }
        return instance;
    }
    
    public String getProperty(String page) {
       return resource.getString(page);
    }
}
